<?php

namespace sffi\WechatRobotPlug\msg_attribute;

trait MsgContent
{
    protected $content;

    public function setContent($content)
    {
        $this->content = $content;
        return $this;
    }

    public function isAt()
    {
        return strpos($this->content, '@=');
    }

    /**
     * @return mixed
     */
    public function getContent()
    {
        return $this->content;
    }
}